import Mock from "mockjs";


export let testData = Mock.mock({
    // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
    'studentId': '10000001',
    'name': '李四',
    'subjectList': [
        "语文",
        '数学',
        '英语',
        '政治',
        '体育',
        '生物',
    ],
    'grades|30': [
        {
            'subject|1':  [
                "语文",
                '数学',
                '英语',
                '政治',
                '体育',
                '生物',
            ],
            'date|1':[
                '2015-10-1',
                '2015-10-2',
                '2015-10-4',
                '2015-10-3',
            ],
            'grade|50-100': 10,
        },
    ],
    'dateList':[
        '2015-10-1',
        '2015-10-2',
        '2015-10-4',
        '2015-10-3',
    ]


})
// 输出结果
//console.log(testData)
//export  {testData};
export let teacherData=Mock.mock({
    'teacherName':Mock.mock('@cname'),
    'studentList':[
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
        {
            studentId:Mock.mock('@id'),
            name:Mock.mock('@cname'),
        },
    ],

})
export const transferData={
    teacherName: '黄艳',
        studentList: [
        { studentId: '210000199709204685', name: '丁芳' ,sid:'1'},
        { studentId: '430000199612288246', name: '方强' ,sid:'2'},
        { studentId: '450000198909207143', name: '田霞' ,sid:'3'},
        { studentId: '530000197606240507', name: '段涛' ,sid:'4'},
        { studentId: '350000198612163449', name: '武平' ,sid:'5'},
        { studentId: '440000200406306711', name: '夏洋' ,sid:'6'},
        { studentId: '42000020130420511X', name: '谭丽' ,sid:'7'},
        { studentId: '420000199001253245', name: '吴秀英',sid:'8' },
        { studentId: '330000201209135254', name: '陈涛' ,sid:'9'},
        { studentId: '210000199411023451', name: '汤勇' ,sid:'10'}
    ]
}
export const teacher_studentGrade=Mock.mock({
    'studentId':'10000000',
    'grades|30': [
        {
            'subject|1':  [
                "语文",
                '数学',
                '英语',
                '政治',
                '体育',
                '生物',
            ],
            'date|1':[
                '2015-10-1',
                '2015-10-2',
                '2015-10-4',
                '2015-10-3',
            ],
            'grade|50-100': 10,
            'id|1-30':1
        },
    ],
})
//console.log('--------testData---------')
//console.log(testData)
//console.log('teacherData')
//console.log(teacherData)
//console.log(teacher_studentGrade)

export const studentCards=Mock.mock({
    'studentList': [
        {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        },
        {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        }, {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        }, {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        }, {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        }, {
            'studentId|1':Mock.mock('@id'),
            'name|1':Mock.mock('@cname'),
            userNumber:'10000000'
        },
    ]

})

console.log(transferData.studentList)